<?php
/**
 * configurationloader.php
 * this file load all configuration files
 */

$configurationFiles = array(
	"mainconfiguration" => "./".basename("configs")."/mainconfiguration.php",
	"router" => "./".basename(core)."/router.php"
);
try {
	
	foreach($configurationFiles as $key => $value){
		
		if(file_exists($value)){
			
			/**
			 * this is a test, this line remove in fiture
			 */
			require_once $value;
		}
		
		else {
			throw new Exception("Framework could not load file: '<strong>$value</strong>'");
		}
	}
	
}
catch(Exception $e){
	echo $e->getMessage();
}